.titlelink{
    color: white;
    text-decoration: none;
    line-height: 50px;
    font-size: larger;
    margin-right: 20px;
}
.navBar{
    background-color: #0A2536;
    height: 50px;
    padding-left: 20px;
}
.titleleft{
    float: left;
}
.titleright{
    float: right;
}
.titleright img{
    height: 100%;
}
.bar{
    height: 50px;
    background: linear-gradient(to right, #6327c3, #c13838);
    padding-left: 50px;
}
.titlelink2{
    color: black;
    text-decoration: none;
    line-height: 50px;
    margin-right: 20px;
}
.titlelink2 span{
    color: #1fa4f7;
    vertical-align: middle;
}
.titleright img{
    margin-right: 20px;
    height: 50px;
}
.basic{
    width: 80vw;
    height: 60vh;
    margin: 0 auto;
}
.basic img{
    width: 30%;
    height: 70%;
    float: left;
}
.form{
    float: right;
    width: 50%;
}
form{
    width: 300px;
    margin: 0 auto;
}
form input{
    padding: 10px 12px;
    border-radius: 6px;
    border-color: #ccc;
    border-width: 1px;
    margin: 20px;
    width: 100%;
}
.tip{
    font-weight: bold;
    margin-bottom: 20px;
    margin-left: 20px;
}
.code{
    color: blue;
}
.error{
    color: red;
    margin-left: 20px;
}
.login{
    width: 100%;
    background-color: blue;
    color: white;
    border: none;
    border-radius: 6px;
    line-height: 30px;
    margin-left: 20px;
}
*{
        box-sizing: border-box;
}



.headimg {
    width: 100%;
    height: 600px; 
}
.section {
    margin: 40px 0;
    padding: 10px;
}
.section-title {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin: 20px 0;
}
.grid-img {
    width: 100%;
    height: 160px; 
    border-radius: 5px;
}
.img-grid-top {
    margin-bottom: 10px; 
}
.bigimg {
    width: 65%; 
    display: inline-block;
    margin-right: 2%;
}
.big-img {
    height: 330px;
}
.smallimgs {
    width: 32%; 
    display: inline-block;
    vertical-align: top; 
}
.smallimgs img {
    margin-bottom: 10px;
}
.img-grid-bottom img {
    width: 32%; 
    display: inline-block; 
    margin-right: 1%; 
    margin-bottom: 10px;
}
.four-img-grid img {
    width: 46%; 
    margin-right: 2%;
    margin-bottom: 10px;
    height: 300px;
}



.header2 {
    text-align: center;
    margin-top: 20px;
}
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}
.username {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
}
.stats {
    font-size: 14px;
    color: #666;
    margin: 0;
}
.nav {
    text-align: center;
    margin: 20px 0;
}
.navitem {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding-bottom: 5px;
}
.navitem.active {
    border-bottom: 2px solid #007bff;
    color: #007bff;
}
.main {
    width: 69%;
    float: left;
    margin-left: 20px;
}
.videossection {
    margin-bottom: 30px;
}
.sectiontitle {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
    text-align: center;
    background-color: #f5f5f5;
    padding: 5px;
    display: inline-block;
    border-radius: 5px;
}
.sidebar {
    width: 20%;
    float: right;
    margin-right: 20px;
}
.sidebartitle {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin: 10px 0;
}
.subitem {
    align-items: center;
    margin-bottom: 10px;
}
.subavatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.subusername {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}
.substats {
    font-size: 12px;
    color: #666;
    margin: 0;
}
.viewmore {
    margin: 10px auto;
    padding: 5px 15px;
    background-color: #fff;
    border: 1px solid #007bff;
    color: #007bff;
    border-radius: 5px;
}
.video{
    width: 300px;
    height: 170px;
}



.header3 {
    background-color: #333;
    color: white;
    padding: 10px;
}
.video-container {
    width: 100%;
}
.video-player {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.video-ops {
    align-items: center;
    margin-top: 8px;
}
.video-ops button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-right: 10px;
    cursor: pointer;
}
.episode {
    margin-top: 15px;
}
.related-video {
    margin-top: 15px;
}
.comment {
    width: 70%;
    margin-top: 15px;
}
.comment textarea {
    width: 100%;
    height: 120px;
    resize: none;
    box-sizing: border-box;
    background-color: white;
}
.comment button {
    float: right;
}
.sidebar2 {
    float: right;
    width: 20%;
}
.sidebar2-item {
    width: 100%;
    height: auto;
    background-color: white;
}
.sidebar2-item img {
  float: left; /* 设置左浮动，使元素横向排列 */
  width: 100%;
  margin-right: 10px; /* 图片之间的右侧间距 */
  margin-bottom: 10px; /* 换行时的底部间距 */
}
.undervideo{
    width: 70%;
    float: left;
}
.episode img{
    width: 22%;
}
.related-video img{
    width: 22%;
}
